/**
 * 分页查询粮食列表
 *
 * @param data
 * @returns {*}
 */
function pageList(data) {
    return requests({
        url: '/admin/sysFood/pageList',
        method: 'post',
        data: data
    })
}

/**
 * 查询粮食详细
 * @param id
 * @returns {*}
 */
function detail(id) {
    return requests({
        url: '/admin/sysFood/query/' + id,
        method: 'get'
    })
}

/**
 * 新增粮食
 *
 * @param data
 * @returns {*}
 */
function add(data) {
    return requests({
        url: '/admin/sysFood/add',
        method: 'post',
        data: data
    })
}

/**
 * 修改粮食
 *
 * @param data
 * @returns {*}
 */
function update(data) {
    return requests({
        url: '/admin/sysFood/update',
        method: 'post',
        data: data
    })
}

/**
 *  删除粮食
 * @param id
 * @returns {*}
 */
function del(id) {
    return requests({
        url: '/admin/sysFood/delete/' + id,
        method: 'delete'
    })
}

/**
 * 导出粮食
 *
 * @param query
 * @returns {*}
 */
function exportData(data) {
    return requests({
        url: '/admin/sysFood/export',
        method: 'post',
        data: data
    })
}
function pageList2(data) {
    return requests({
        url: '/admin/sysWarehouse/pageList',
        method: 'post',
        data: data
    })
}